﻿using Orleans;
using Pay.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Pay.Model.Model;
using Pay.Container;
using Pay.Dal;

namespace Pay.ServiceImplement
{
    public class MerchantServiceImplement : Grain, IMerchantService
    {
        public async Task<bool> Update(MerchantInfo info)
        {
            var instance = LocManager.Resolve<IMerchantDal>();
            return await instance.Update(info);
        }

        public async Task<MerchantInfo> GetById(long id)
        {
            var instance = LocManager.Resolve<IMerchantDal>();
            return await instance.GetById(id);
        }
    }
}
